package com.sdu.hotel.entity.system;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.sdu.hotel.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * @author xyh
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table("sys_resource")
public class SysResource extends BaseEntity implements Serializable {

//    @TableId(type = IdType.ASSIGN_ID)
//    @JsonSerialize(using = ToStringSerializer.class)
//    private String resourceId;

    @Column("parent_id")
    private String parentId;

    @Column("resource_deep")
    private Integer resourceDeep;

    @Column("resource_name")
    private String resourceName;

    @Column("resource_name_en")
    private String resourceNameEn;

    @Column("controller_name")
    private String controllerName;

    @Column("action_name")
    private String actionName;

    @Column("resource_url")
    private String resourceUrl;

    @Column("resource_desc")
    private String resourceDesc;

    @Column("resource_type")
    private String resourceType;

    @Column("parameters")
    private String parameters;

    @Column("priority")
    private Integer priority;

    @Column("menu_image")
    private String menuImage;

    @Column("remark")
    private String remark;

    @Column("sort")
    private Integer sort;

    @Column("sys_init")
    private Boolean sysInit;

    @Column(value = "update_time",onInsertValue = "now()")
    private Date updateTime;


}
